import maya


maya.utils.executeDeferred("""
from PySide2 import QtWidgets
JTK_Launcher_name = os.environ.get('JTK_LCN')
if not JTK_Launcher_name:
    JTK_Launcher_name = 'JTK - None'
def changeTitle(title):
    if not title.startswith("JTK") and not title.startswith("SNGX"):
        tt ="JTK - [" + JTK_Launcher_name + "]     " + title
        mayaWindow.setWindowTitle(tt)

for w in QtWidgets.QApplication.instance().topLevelWidgets():
    if w.objectName() == "MayaWindow":
        mayaWindow = w
        w.windowTitleChanged.connect(changeTitle)
        break
        """)